<?php

// Root Path Alias
Yii::setPathOfAlias('root', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'defaultController' => 'app/home',
    'id' => 'pricemon',
    'name' => 'PriceMon',
    'timeZone' => 'Asia/Manila',
    // preloading component
    'preload' => array('log'),
    // autoloading classes
    'import' => require(dirname(__FILE__) . '/import.php'),
    // Application Components
    'components' => require(dirname(__FILE__) . '/components.php'),
    // Modules
    'modules' => array(
        // uncomment the following to enable the Gii tool
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => 'null',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters' => array('127.0.0.1', '::1'),
        ),
    ),
    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params' => require(dirname(__FILE__) . '/params.php')
);